﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Hoadonban" targetNamespace="http://tempuri.org/Hoadonban.xsd" xmlns:mstns="http://tempuri.org/Hoadonban.xsd" xmlns="http://tempuri.org/Hoadonban.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="QuanLyNhaSachConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="QuanLyNhaSachConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.quanlynhasach.Properties.Settings.GlobalReference.Default.QuanLyNhaSachConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ChiTietHoaDonTableAdapter" GeneratorDataComponentClassName="ChiTietHoaDonTableAdapter" Name="ChiTietHoaDon" UserDataComponentName="ChiTietHoaDonTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QuanLyNhaSachConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT SoHoaDon, A.MaHoaDon, A.MaSach, A.SoLuong, A.DonGia, ThanhTien, A.DonVi,A.Thue, B.MaKH, B.MaNhanVien, B.TongTien, C.TenSach FROM dbo.ChiTietHoaDon A, dbo.HoaDon B, dbo.Sach C where A.MaHoaDon=B.MaHoaDon and  A.MaSach=C.MaSach and A.MaHoaDon=@MaHoaDon</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="MaHoaDon" ColumnName="MaHoaDon" DataSourceName="QuanLyNhaSach.dbo.ChiTietHoaDon" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@MaHoaDon" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="MaHoaDon" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="SoHoaDon" DataSetColumn="SoHoaDon" />
              <Mapping SourceColumn="MaHoaDon" DataSetColumn="MaHoaDon" />
              <Mapping SourceColumn="MaSach" DataSetColumn="MaSach" />
              <Mapping SourceColumn="SoLuong" DataSetColumn="SoLuong" />
              <Mapping SourceColumn="DonGia" DataSetColumn="DonGia" />
              <Mapping SourceColumn="ThanhTien" DataSetColumn="ThanhTien" />
              <Mapping SourceColumn="DonVi" DataSetColumn="DonVi" />
              <Mapping SourceColumn="Thue" DataSetColumn="Thue" />
              <Mapping SourceColumn="MaKH" DataSetColumn="MaKH" />
              <Mapping SourceColumn="MaNhanVien" DataSetColumn="MaNhanVien" />
              <Mapping SourceColumn="TongTien" DataSetColumn="TongTien" />
              <Mapping SourceColumn="TenSach" DataSetColumn="TenSach" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="HoaDonTableAdapter" GeneratorDataComponentClassName="HoaDonTableAdapter" Name="HoaDon" UserDataComponentName="HoaDonTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QuanLyNhaSachConnectionString (Settings)" DbObjectName="QuanLyNhaSach.dbo.HoaDon" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[HoaDon] WHERE (([MaHoaDon] = @Original_MaHoaDon) AND ([MaNhanVien] = @Original_MaNhanVien) AND ([TongTien] = @Original_TongTien) AND ([Ngay] = @Original_Ngay) AND ((@IsNull_MaKH = 1 AND [MaKH] IS NULL) OR ([MaKH] = @Original_MaKH)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaHoaDon" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaHoaDon" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaNhanVien" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaNhanVien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TongTien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TongTien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Ngay" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Ngay" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaKH" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaKH" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaKH" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaKH" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[HoaDon] ([MaHoaDon], [MaNhanVien], [TongTien], [Ngay], [MaKH]) VALUES (@MaHoaDon, @MaNhanVien, @TongTien, @Ngay, @MaKH);
SELECT MaHoaDon, MaNhanVien, TongTien, Ngay, MaKH FROM HoaDon WHERE (MaHoaDon = @MaHoaDon)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaHoaDon" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaHoaDon" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaNhanVien" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaNhanVien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TongTien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TongTien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Ngay" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Ngay" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaKH" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaKH" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MaHoaDon, MaNhanVien, TongTien, Ngay, MaKH FROM dbo.HoaDon</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[HoaDon] SET [MaHoaDon] = @MaHoaDon, [MaNhanVien] = @MaNhanVien, [TongTien] = @TongTien, [Ngay] = @Ngay, [MaKH] = @MaKH WHERE (([MaHoaDon] = @Original_MaHoaDon) AND ([MaNhanVien] = @Original_MaNhanVien) AND ([TongTien] = @Original_TongTien) AND ([Ngay] = @Original_Ngay) AND ((@IsNull_MaKH = 1 AND [MaKH] IS NULL) OR ([MaKH] = @Original_MaKH)));
SELECT MaHoaDon, MaNhanVien, TongTien, Ngay, MaKH FROM HoaDon WHERE (MaHoaDon = @MaHoaDon)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaHoaDon" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaHoaDon" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaNhanVien" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaNhanVien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TongTien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TongTien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Ngay" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Ngay" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaKH" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaKH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaHoaDon" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaHoaDon" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaNhanVien" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaNhanVien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TongTien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TongTien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Ngay" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Ngay" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaKH" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaKH" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaKH" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaKH" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaHoaDon" DataSetColumn="MaHoaDon" />
              <Mapping SourceColumn="MaNhanVien" DataSetColumn="MaNhanVien" />
              <Mapping SourceColumn="TongTien" DataSetColumn="TongTien" />
              <Mapping SourceColumn="Ngay" DataSetColumn="Ngay" />
              <Mapping SourceColumn="MaKH" DataSetColumn="MaKH" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SachTableAdapter" GeneratorDataComponentClassName="SachTableAdapter" Name="Sach" UserDataComponentName="SachTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QuanLyNhaSachConnectionString (Settings)" DbObjectName="QuanLyNhaSach.dbo.Sach" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Sach] WHERE (([MaSach] = @Original_MaSach) AND ([TenSach] = @Original_TenSach) AND ([GiaMua] = @Original_GiaMua) AND ([GiaBan] = @Original_GiaBan) AND ((@IsNull_DonVi = 1 AND [DonVi] IS NULL) OR ([DonVi] = @Original_DonVi)) AND ([NhaCungCap] = @Original_NhaCungCap) AND ((@IsNull_TenTG = 1 AND [TenTG] IS NULL) OR ([TenTG] = @Original_TenTG)) AND ((@IsNull_MaTL = 1 AND [MaTL] IS NULL) OR ([MaTL] = @Original_MaTL)) AND ((@IsNull_Thue = 1 AND [Thue] IS NULL) OR ([Thue] = @Original_Thue)) AND ([SoLuong] = @Original_SoLuong))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaSach" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TenSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenSach" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GiaMua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaMua" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GiaBan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaBan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DonVi" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DonVi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenTG" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TenTG" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaTL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaTL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SoLuong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoLuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Sach] ([MaSach], [TenSach], [GiaMua], [GiaBan], [DonVi], [NhaCungCap], [TenTG], [MaTL], [Thue], [SoLuong]) VALUES (@MaSach, @TenSach, @GiaMua, @GiaBan, @DonVi, @NhaCungCap, @TenTG, @MaTL, @Thue, @SoLuong);
SELECT MaSach, TenSach, GiaMua, GiaBan, DonVi, NhaCungCap, TenTG, MaTL, Thue, SoLuong FROM Sach WHERE (MaSach = @MaSach)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaSach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TenSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenSach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GiaMua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaMua" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GiaBan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaBan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DonVi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TenTG" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaTL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SoLuong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoLuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MaSach, TenSach, GiaMua, GiaBan, DonVi, NhaCungCap, TenTG, MaTL, Thue, SoLuong FROM dbo.Sach</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Sach] SET [MaSach] = @MaSach, [TenSach] = @TenSach, [GiaMua] = @GiaMua, [GiaBan] = @GiaBan, [DonVi] = @DonVi, [NhaCungCap] = @NhaCungCap, [TenTG] = @TenTG, [MaTL] = @MaTL, [Thue] = @Thue, [SoLuong] = @SoLuong WHERE (([MaSach] = @Original_MaSach) AND ([TenSach] = @Original_TenSach) AND ([GiaMua] = @Original_GiaMua) AND ([GiaBan] = @Original_GiaBan) AND ((@IsNull_DonVi = 1 AND [DonVi] IS NULL) OR ([DonVi] = @Original_DonVi)) AND ([NhaCungCap] = @Original_NhaCungCap) AND ((@IsNull_TenTG = 1 AND [TenTG] IS NULL) OR ([TenTG] = @Original_TenTG)) AND ((@IsNull_MaTL = 1 AND [MaTL] IS NULL) OR ([MaTL] = @Original_MaTL)) AND ((@IsNull_Thue = 1 AND [Thue] IS NULL) OR ([Thue] = @Original_Thue)) AND ([SoLuong] = @Original_SoLuong));
SELECT MaSach, TenSach, GiaMua, GiaBan, DonVi, NhaCungCap, TenTG, MaTL, Thue, SoLuong FROM Sach WHERE (MaSach = @MaSach)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaSach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TenSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenSach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GiaMua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaMua" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GiaBan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaBan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DonVi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TenTG" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaTL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SoLuong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoLuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaSach" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TenSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenSach" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GiaMua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaMua" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GiaBan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaBan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DonVi" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DonVi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenTG" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TenTG" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaTL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaTL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SoLuong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoLuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaSach" DataSetColumn="MaSach" />
              <Mapping SourceColumn="TenSach" DataSetColumn="TenSach" />
              <Mapping SourceColumn="GiaMua" DataSetColumn="GiaMua" />
              <Mapping SourceColumn="GiaBan" DataSetColumn="GiaBan" />
              <Mapping SourceColumn="DonVi" DataSetColumn="DonVi" />
              <Mapping SourceColumn="NhaCungCap" DataSetColumn="NhaCungCap" />
              <Mapping SourceColumn="TenTG" DataSetColumn="TenTG" />
              <Mapping SourceColumn="MaTL" DataSetColumn="MaTL" />
              <Mapping SourceColumn="Thue" DataSetColumn="Thue" />
              <Mapping SourceColumn="SoLuong" DataSetColumn="SoLuong" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Hoadonban" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="Hoadonban" msprop:Generator_UserDSName="Hoadonban">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ChiTietHoaDon" msprop:Generator_TableClassName="ChiTietHoaDonDataTable" msprop:Generator_TableVarName="tableChiTietHoaDon" msprop:Generator_TablePropName="ChiTietHoaDon" msprop:Generator_RowDeletingName="ChiTietHoaDonRowDeleting" msprop:Generator_RowChangingName="ChiTietHoaDonRowChanging" msprop:Generator_RowEvHandlerName="ChiTietHoaDonRowChangeEventHandler" msprop:Generator_RowDeletedName="ChiTietHoaDonRowDeleted" msprop:Generator_UserTableName="ChiTietHoaDon" msprop:Generator_RowChangedName="ChiTietHoaDonRowChanged" msprop:Generator_RowEvArgName="ChiTietHoaDonRowChangeEvent" msprop:Generator_RowClassName="ChiTietHoaDonRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="SoHoaDon" msprop:Generator_ColumnVarNameInTable="columnSoHoaDon" msprop:Generator_ColumnPropNameInRow="SoHoaDon" msprop:Generator_ColumnPropNameInTable="SoHoaDonColumn" msprop:Generator_UserColumnName="SoHoaDon">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaHoaDon" msprop:Generator_ColumnVarNameInTable="columnMaHoaDon" msprop:Generator_ColumnPropNameInRow="MaHoaDon" msprop:Generator_ColumnPropNameInTable="MaHoaDonColumn" msprop:Generator_UserColumnName="MaHoaDon">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaSach" msprop:Generator_ColumnVarNameInTable="columnMaSach" msprop:Generator_ColumnPropNameInRow="MaSach" msprop:Generator_ColumnPropNameInTable="MaSachColumn" msprop:Generator_UserColumnName="MaSach">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SoLuong" msprop:Generator_ColumnVarNameInTable="columnSoLuong" msprop:Generator_ColumnPropNameInRow="SoLuong" msprop:Generator_ColumnPropNameInTable="SoLuongColumn" msprop:Generator_UserColumnName="SoLuong" type="xs:int" />
              <xs:element name="DonGia" msprop:Generator_ColumnVarNameInTable="columnDonGia" msprop:Generator_ColumnPropNameInRow="DonGia" msprop:Generator_ColumnPropNameInTable="DonGiaColumn" msprop:Generator_UserColumnName="DonGia" type="xs:int" />
              <xs:element name="ThanhTien" msprop:Generator_ColumnVarNameInTable="columnThanhTien" msprop:Generator_ColumnPropNameInRow="ThanhTien" msprop:Generator_ColumnPropNameInTable="ThanhTienColumn" msprop:Generator_UserColumnName="ThanhTien" type="xs:int" />
              <xs:element name="DonVi" msprop:Generator_ColumnVarNameInTable="columnDonVi" msprop:Generator_ColumnPropNameInRow="DonVi" msprop:Generator_ColumnPropNameInTable="DonViColumn" msprop:Generator_UserColumnName="DonVi" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Thue" msprop:Generator_ColumnVarNameInTable="columnThue" msprop:Generator_ColumnPropNameInRow="Thue" msprop:Generator_ColumnPropNameInTable="ThueColumn" msprop:Generator_UserColumnName="Thue" type="xs:int" minOccurs="0" />
              <xs:element name="MaKH" msprop:Generator_ColumnVarNameInTable="columnMaKH" msprop:Generator_ColumnPropNameInRow="MaKH" msprop:Generator_ColumnPropNameInTable="MaKHColumn" msprop:Generator_UserColumnName="MaKH" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaNhanVien" msprop:Generator_ColumnVarNameInTable="columnMaNhanVien" msprop:Generator_ColumnPropNameInRow="MaNhanVien" msprop:Generator_ColumnPropNameInTable="MaNhanVienColumn" msprop:Generator_UserColumnName="MaNhanVien">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TongTien" msprop:Generator_ColumnVarNameInTable="columnTongTien" msprop:Generator_ColumnPropNameInRow="TongTien" msprop:Generator_ColumnPropNameInTable="TongTienColumn" msprop:Generator_UserColumnName="TongTien" type="xs:int" />
              <xs:element name="TenSach" msprop:Generator_ColumnVarNameInTable="columnTenSach" msprop:Generator_ColumnPropNameInRow="TenSach" msprop:Generator_ColumnPropNameInTable="TenSachColumn" msprop:Generator_UserColumnName="TenSach">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="HoaDon" msprop:Generator_TableClassName="HoaDonDataTable" msprop:Generator_TableVarName="tableHoaDon" msprop:Generator_TablePropName="HoaDon" msprop:Generator_RowDeletingName="HoaDonRowDeleting" msprop:Generator_RowChangingName="HoaDonRowChanging" msprop:Generator_RowEvHandlerName="HoaDonRowChangeEventHandler" msprop:Generator_RowDeletedName="HoaDonRowDeleted" msprop:Generator_UserTableName="HoaDon" msprop:Generator_RowChangedName="HoaDonRowChanged" msprop:Generator_RowEvArgName="HoaDonRowChangeEvent" msprop:Generator_RowClassName="HoaDonRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaHoaDon" msprop:Generator_ColumnVarNameInTable="columnMaHoaDon" msprop:Generator_ColumnPropNameInRow="MaHoaDon" msprop:Generator_ColumnPropNameInTable="MaHoaDonColumn" msprop:Generator_UserColumnName="MaHoaDon">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaNhanVien" msprop:Generator_ColumnVarNameInTable="columnMaNhanVien" msprop:Generator_ColumnPropNameInRow="MaNhanVien" msprop:Generator_ColumnPropNameInTable="MaNhanVienColumn" msprop:Generator_UserColumnName="MaNhanVien">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TongTien" msprop:Generator_ColumnVarNameInTable="columnTongTien" msprop:Generator_ColumnPropNameInRow="TongTien" msprop:Generator_ColumnPropNameInTable="TongTienColumn" msprop:Generator_UserColumnName="TongTien" type="xs:int" />
              <xs:element name="Ngay" msprop:Generator_ColumnVarNameInTable="columnNgay" msprop:Generator_ColumnPropNameInRow="Ngay" msprop:Generator_ColumnPropNameInTable="NgayColumn" msprop:Generator_UserColumnName="Ngay" type="xs:dateTime" />
              <xs:element name="MaKH" msprop:Generator_ColumnVarNameInTable="columnMaKH" msprop:Generator_ColumnPropNameInRow="MaKH" msprop:Generator_ColumnPropNameInTable="MaKHColumn" msprop:Generator_UserColumnName="MaKH" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Sach" msprop:Generator_TableClassName="SachDataTable" msprop:Generator_TableVarName="tableSach" msprop:Generator_TablePropName="Sach" msprop:Generator_RowDeletingName="SachRowDeleting" msprop:Generator_RowChangingName="SachRowChanging" msprop:Generator_RowEvHandlerName="SachRowChangeEventHandler" msprop:Generator_RowDeletedName="SachRowDeleted" msprop:Generator_UserTableName="Sach" msprop:Generator_RowChangedName="SachRowChanged" msprop:Generator_RowEvArgName="SachRowChangeEvent" msprop:Generator_RowClassName="SachRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaSach" msprop:Generator_ColumnVarNameInTable="columnMaSach" msprop:Generator_ColumnPropNameInRow="MaSach" msprop:Generator_ColumnPropNameInTable="MaSachColumn" msprop:Generator_UserColumnName="MaSach">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenSach" msprop:Generator_ColumnVarNameInTable="columnTenSach" msprop:Generator_ColumnPropNameInRow="TenSach" msprop:Generator_ColumnPropNameInTable="TenSachColumn" msprop:Generator_UserColumnName="TenSach">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GiaMua" msprop:Generator_ColumnVarNameInTable="columnGiaMua" msprop:Generator_ColumnPropNameInRow="GiaMua" msprop:Generator_ColumnPropNameInTable="GiaMuaColumn" msprop:Generator_UserColumnName="GiaMua" type="xs:int" />
              <xs:element name="GiaBan" msprop:Generator_ColumnVarNameInTable="columnGiaBan" msprop:Generator_ColumnPropNameInRow="GiaBan" msprop:Generator_ColumnPropNameInTable="GiaBanColumn" msprop:Generator_UserColumnName="GiaBan" type="xs:int" />
              <xs:element name="DonVi" msprop:Generator_ColumnVarNameInTable="columnDonVi" msprop:Generator_ColumnPropNameInRow="DonVi" msprop:Generator_ColumnPropNameInTable="DonViColumn" msprop:Generator_UserColumnName="DonVi" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NhaCungCap" msprop:Generator_ColumnVarNameInTable="columnNhaCungCap" msprop:Generator_ColumnPropNameInRow="NhaCungCap" msprop:Generator_ColumnPropNameInTable="NhaCungCapColumn" msprop:Generator_UserColumnName="NhaCungCap">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenTG" msprop:Generator_ColumnVarNameInTable="columnTenTG" msprop:Generator_ColumnPropNameInRow="TenTG" msprop:Generator_ColumnPropNameInTable="TenTGColumn" msprop:Generator_UserColumnName="TenTG" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaTL" msprop:Generator_ColumnVarNameInTable="columnMaTL" msprop:Generator_ColumnPropNameInRow="MaTL" msprop:Generator_ColumnPropNameInTable="MaTLColumn" msprop:Generator_UserColumnName="MaTL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Thue" msprop:Generator_ColumnVarNameInTable="columnThue" msprop:Generator_ColumnPropNameInRow="Thue" msprop:Generator_ColumnPropNameInTable="ThueColumn" msprop:Generator_UserColumnName="Thue" type="xs:int" minOccurs="0" />
              <xs:element name="SoLuong" msprop:Generator_ColumnVarNameInTable="columnSoLuong" msprop:Generator_ColumnPropNameInRow="SoLuong" msprop:Generator_ColumnPropNameInTable="SoLuongColumn" msprop:Generator_UserColumnName="SoLuong" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ChiTietHoaDon" />
      <xs:field xpath="mstns:SoHoaDon" />
    </xs:unique>
    <xs:unique name="HoaDon_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:HoaDon" />
      <xs:field xpath="mstns:MaHoaDon" />
    </xs:unique>
    <xs:unique name="Sach_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Sach" />
      <xs:field xpath="mstns:MaSach" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="CTHD_01" msdata:parent="HoaDon" msdata:child="ChiTietHoaDon" msdata:parentkey="MaHoaDon" msdata:childkey="MaHoaDon" msprop:Generator_UserChildTable="ChiTietHoaDon" msprop:Generator_ChildPropName="GetChiTietHoaDonRows" msprop:Generator_UserRelationName="CTHD_01" msprop:Generator_RelationVarName="relationCTHD_01" msprop:Generator_UserParentTable="HoaDon" msprop:Generator_ParentPropName="HoaDonRow" />
      <msdata:Relationship name="CTHD_02" msdata:parent="Sach" msdata:child="ChiTietHoaDon" msdata:parentkey="MaSach" msdata:childkey="MaSach" msprop:Generator_UserChildTable="ChiTietHoaDon" msprop:Generator_ChildPropName="GetChiTietHoaDonRows" msprop:Generator_UserRelationName="CTHD_02" msprop:Generator_RelationVarName="relationCTHD_02" msprop:Generator_UserParentTable="Sach" msprop:Generator_ParentPropName="SachRow" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>